﻿@model LbangCMS.ViewModels.NewCategoryListModel

 <div class="gx_p_content_left am-animation-slide-left" data-am-scrollspy="{animation: 'slide-left'}">
     <div class="gx_p_left_top hidden-in"><h2 class="gx_p_left_tittle">资讯</h2><span class="gx_p_left_letter">NEWS</span></div>
     <ul class="gx_p_left_nav clearfix">
         @if (Model != null && Model.NewsCategories.Any())
         {
             foreach (var item in Model.NewsCategories)
             {
                 var cls = "";
                 if(item.ID==Model.CurrentCategoryId)
                 {
                     cls = "gx_p_nav_on";
                 }
                 <li><a class="@cls" href="@Url.Action("Index", "News", new { categoryId=item.ID }) ">@item.Name<i class="fa icon-left hidden-in"></i></a></li>
             }
         }
     </ul>
 </div>